<%--
  Created by IntelliJ IDEA.
  User: 754165242
  Date: 2022/3/7
  Time: 18:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
        jsp中书写java代码的第三种方式
          <%!声明变量、声明方法%>:声明成员方法和成员变量
    --%>
<%!int a=10;
    public int getSum(){
        return a+20;
    }%>

<%=getSum()%>
</body>
</html>
